# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-convert-asn1
pkgver=0.34
pkgrel=1
pkgdesc="Perl/CPAN Module Convert::ASN1 : Standard endecode of ASN1 structures"
arch=("any")
url="https://search.cpan.org/dist/Convert-ASN1"
license=("GPL" "PerlArtistic")
source=("https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Convert-ASN1-$pkgver.tar.gz")

build() {
  cd "$srcdir"/Convert-ASN1-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Convert-ASN1-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
sha256sums=('a628d7c9d390568fb76359975fa03f626ce57f10dc17980e8e3587d7713e4ee7')
